local skel = fk.CreateSkill {
  name = "emo__sushuan",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.DamageCaused, {
  anim_type = "control",
  can_trigger = function (self, event, target, player, data)
    return target and player:hasSkill(skel.name) and data.damage > (player.room:getBanner("RoundCount") or 0)
  end,
  on_use = function (self, event, target, player, data)
    data:changeDamage((player.room:getBanner("RoundCount") or 0) - data.damage)
  end,
})

skel:addEffect(fk.BeforeDrawCard, {
  anim_type = "control",
  can_trigger = function (self, event, target, player, data)
    return target and player:hasSkill(skel.name) and data.num > (player.room:getBanner("RoundCount") or 0)
  end,
  on_use = function (self, event, target, player, data)
    data.num = (player.room:getBanner("RoundCount") or 0)
  end,
})


Fk:loadTranslationTable{
  ["emo__sushuan"] = "肃善",
  [":emo__sushuan"] = "锁定技，所有角色每次造成的伤害值和摸牌数至多为X（X为当前轮数）。",
}


return skel
